<?php declare(strict_types=1);


namespace App\Model\Entity;

use Swoft\Db\Annotation\Mapping\Column;
use Swoft\Db\Annotation\Mapping\Entity;
use Swoft\Db\Annotation\Mapping\Id;
use Swoft\Db\Eloquent\Model;


/**
 * 
 * Class Emp
 *
 * @since 2.0
 *
 * @Entity(table="emp",pool="db.pool")
 */
class Emp extends Model
{
    /**
     * 
     * @Id()
     * @Column()
     *
     * @var int
     */
    private $id;

    /**
     * 
     *
     * @Column()
     *
     * @var string|null
     */
    private $ename;

    /**
     * 
     *
     * @Column()
     *
     * @var string|null
     */
    private $hiredate;

    /**
     * 
     *
     * @Column()
     *
     * @var float|null
     */
    private $sal;

    /**
     * 
     *
     * @Column()
     *
     * @var int|null
     */
    private $deptno;

    /**
     * 
     *
     * @Column()
     *
     * @var int|null
     */
    private $tin;


    /**
     * @param int $id
     *
     * @return self
     */
    public function setId(int $id): self
    {
        $this->id = $id;

        return $this;
    }

    /**
     * @param string|null $ename
     *
     * @return self
     */
    public function setEname(?string $ename): self
    {
        $this->ename = $ename;

        return $this;
    }

    /**
     * @param string|null $hiredate
     *
     * @return self
     */
    public function setHiredate(?string $hiredate): self
    {
        $this->hiredate = $hiredate;

        return $this;
    }

    /**
     * @param float|null $sal
     *
     * @return self
     */
    public function setSal(?float $sal): self
    {
        $this->sal = $sal;

        return $this;
    }

    /**
     * @param int|null $deptno
     *
     * @return self
     */
    public function setDeptno(?int $deptno): self
    {
        $this->deptno = $deptno;

        return $this;
    }

    /**
     * @param int|null $tin
     *
     * @return self
     */
    public function setTin(?int $tin): self
    {
        $this->tin = $tin;

        return $this;
    }

    /**
     * @return int
     */
    public function getId(): ?int
    {
        return $this->id;
    }

    /**
     * @return string|null
     */
    public function getEname(): ?string
    {
        return $this->ename;
    }

    /**
     * @return string|null
     */
    public function getHiredate(): ?string
    {
        return $this->hiredate;
    }

    /**
     * @return float|null
     */
    public function getSal(): ?float
    {
        return $this->sal;
    }

    /**
     * @return int|null
     */
    public function getDeptno(): ?int
    {
        return $this->deptno;
    }

    /**
     * @return int|null
     */
    public function getTin(): ?int
    {
        return $this->tin;
    }

}
